package com.qtummatrix.dao;

import com.qtummatrix.entity.ModelEntity;
import com.qtummatrix.entity.ModelMoudle;
import com.qtummatrix.entity.MoudleEntity;
import com.qtummatrix.entity.QuestionsEntity;

import java.util.List;

/**
 * create by Gongshiyong  2019-12-07 11:26
 */
public interface SaveMoudleDao {
    /**
     * 添加问题
     *
     * @param questions
     * @return
     */
    public void addQuestions(QuestionsEntity questions);

    public QuestionsEntity get_QuestionbyContent(String content);

    public int get_sumpage(int scopeid, int typeid, String content);

    /**
     * 查看题库中的问题
     *
     * @return
     */
    public List<QuestionsEntity> get_Question(int scopeid, int typeid, String content, int n);

    /**
     * 根据范围名查范围id
     */
    public int get_ScopeID(String scopeName);

    /**
     * 根据类型名查类型id
     */
    public int get_TypeID(String typeName);

    /**
     * 查看问题模组
     */
    public List<MoudleEntity> get_Moudle(int scopeid, String name, int n);

    public int get_MoudleSumpage(int scopeid, String name);

    /**
     * 根据模组ID查看此模组中的所有问题的id
     */
    public List<Integer> get_QuestionIDByMoudleID(int moudleID);

    /**
     * 根据问题id查看问题
     */
    public List<QuestionsEntity> get_QuestionByID(List<Integer> idlist);


    public void del_questionsfromBank(int id);

    public void del_questionsfromMoudel(int id);

    public List<QuestionsEntity> get_questionsByScope(int scopeId);


    public boolean add_Moudle(MoudleEntity moudleEntity);

    public void add_questionsMoudle(int moudleid, int[] questionsid);

    public int get_moudleid(String name);

    public void del_moudle(int moudleid);


    public List<ModelEntity> get_goodsMoudleInfo();

    public List<ModelMoudle> getModelMoudle();

    public List<String> getQuestionMoudleByID(List<Integer> list);

    public List<MoudleEntity> getAllmoudleEntity();

    public void updateGoodsMoudle(int id, int moudleid);
}
